package com.example.mq.mqserver.core;

public enum ExchangeType {
    //交换机的类型， DIRECT, FANOUT, TOPIC
    DIRECT(0),
    FANOUT(1),
    TOPIC(2);

    private final int type;

    ExchangeType(int type){
        this.type = type;
    }

    public int getType() {
        return type;
    }
}
